-- GENERATED SPELL FOR [Kolkar Wrangler] --


function spell0_3272(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3272', 5324, 1)
end

function spell1_3272(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3272', 604, 1)
end

function Sorts_3272(pUnit, Event)
local choix_sorts_3272 = math.random(0, 1)
if choix_sorts_3272 == 0 then
pUnit:RegisterEvent('spell0_3272', 1, 1)
end
if choix_sorts_3272 == 1 then
pUnit:RegisterEvent('spell1_3272', 1, 1)
end
end

function mob3272_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3272', math.random(1500, 3000), 1)
end

function mob3272_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3272_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3272_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3272, 1, 'mob3272_Action')
RegisterUnitEvent(3272, 2, 'mob3272_Leave')
RegisterUnitEvent(3272, 3, 'mob3272_Kill')
RegisterUnitEvent(3272, 4, 'mob3272_Die')
